package com.yxw.blog.dao;

import com.yxw.blog.bean.entity.Article;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author yexinwei
 */
@Repository
public interface ArticleDao {
    List<Article> getArticleByUserId(Integer userId);

    Integer insertArticle(Integer userId, String title, Date date , String articleUrl , Integer great);

    Integer deleteArticleById(Integer articleId);

    Article getArticleById(Integer articleId);

    Integer addArticleGreat(Integer greatArticleId);

    Integer updateArticleByArticleId(Integer deleteGreatArticleId);

    List<Article> getArticleList();
}
